package UI;

import facecat.topin.core.*;
import java.util.*;
import facecat.topin.div.*;
import facecat.topin.grid.*;
import facecat.topin.service.*;

public class FCGridPECell extends FCGridDoubleCell{
     public FCGridPECell()
    {
        setDigit(2);
    }

    public String getPaintText()
    {
        double value = getDouble();
        if (value < 0)
        {
            return "亏损";
        }
        else
        {
            return FCTran.getValueByDigit(value, 2);
        }
    }
}
